import type { IPageContentConfig } from '@/global/types'

const userContentConfig: IPageContentConfig = {
  pageName: 'user',
  layout: {
    border: false,
    size: 'small',
    stripe: true
  },
  batchBtns: [
    { type: 'batchBanned', label: '封禁账号' },
    { type: 'batchUniteDisable', label: '解禁账号' },
    { type: 'batchDelete', label: '删除账号' }
  ],
  items: [
    { type: 'selection' },
    {
      type: 'custom',
      slotName: 'user',
      label: '用户',
      minWidth: '200',
      width: '200',
      showOverflowTooltip: true
    },
    {
      prop: 'nickName',
      label: '昵称',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'status',
      prop: 'status',
      label: '状态',
      minWidth: '100',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'userPhone',
      label: '手机号',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'identityCard',
      label: '身份证',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' },
        { type: 'resetPwd', label: '重置密码' },
        { type: 'kickout', label: '强制下线' }
      ]
    }
  ]
}

export default userContentConfig
